package com.ericpol.pageObjectPattern;

import org.testng.annotations.Test;
import static org.testng.Assert.assertTrue;

public class LoginTest extends SeleniumBaseSuperClass {
	@Test
	public void shouldBePossibleToLogin()
			throws Exception {
		// given
		LoginPage loginPage = new LoginPage(driver);
		loginPage.open();

		// when
		MainPage mainPage = loginPage.Login("admin", "password");

		// then
		assertTrue(mainPage.isOpen());

	}
}
